from django import forms
from nutrition.models import DataSource, DataSourceLink, DataDerivation
from nutrition.models import FoodGroup, FoodDescription, Footnote
from nutrition.models import NutrientData, NutrientDefinition, SourceCode
from nutrition.models import Weight


class DataSourceForm(forms.ModelForm):
    class Meta:
        model = DataSource

class DataSourceLinkForm(forms.ModelForm):
    class Meta:
        model = DataSourceLink

class DataDerivationForm(forms.ModelForm):
    class Meta:
        model = DataDerivation

class SourceCodeForm(forms.ModelForm):
    class Meta:
        model = SourceCode

class NutrientDefinitionForm(forms.ModelForm):
    class Meta:
        model = NutrientDefinition

class NutrientDataForm(forms.ModelForm):
    class Meta:
        model = NutrientData

class WeightForm(forms.ModelForm):
    class Meta:
        model = Weight

class FoodGroupForm(forms.ModelForm):
    class Meta:
        model = FoodGroup

class FootnoteForm(forms.ModelForm):
    class Meta:
        model = Footnote

class FoodDescriptionForm(forms.ModelForm):
    class Meta:
        model = FoodDescription